package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 合同-订单相互关联对象 erp_contract_order_info
 *
 * @author wutao
 * @date 2024-06-17
 */
@TableName ( "erp_contract_order_info" )
@ApiModel ( value = "erp_contract_order_info对象", description = "合同-订单相互关联" )
@Data
@Accessors(chain = true)
public class ContractOrderEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId ( type = IdType.INPUT )
    private String id;

    /**
     * 合同Id
     */
    @ApiModelProperty ( "合同Id" )
    @TableField ( "contract_id" )
    @Excel ( name = "合同Id" )
    private String contractId;

    /**
     * 源合同类型：
     * 1、采购合同；
     * 2、销售合同；
     */
    @ApiModelProperty ( "源合同类型： 1、采购合同； 2、销售合同；" )
    @TableField ( "source_contract_type" )
    @Excel ( name = "源合同类型： 1、采购合同； 2、销售合同；" )
    private Integer sourceContractType;

    /**
     * 订单Id
     */
    @ApiModelProperty ( "订单Id" )
    @TableField ( "order_id" )
    @Excel ( name = "订单Id" )
    private String orderId;

    /**
     * 源单类型；1：采购订单；2：销售订单
     */
    @ApiModelProperty ( "源单类型；1：采购订单；2：销售订单" )
    @TableField ( "source_order_type" )
    @Excel ( name = "源单类型；1：采购订单；2：销售订单" )
    private Integer sourceOrderType;

    /**
     * 是否可用
     */
    @ApiModelProperty ( "是否可用" )
    @TableField ( "is_used" )
    @Excel ( name = "是否可用" )
    private Integer isUsed;

}
